﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEngine;

namespace Nirvana
{
    /// <summary>
    /// 程序集工具
    /// </summary>
    public static class AssemblyTool
    {
		internal static string[] GetDefaultApps(string path)
		{
			Assembly assembly = Assembly.GetAssembly(typeof(EditorWindow));
			Type type = assembly.GetType("UnityEditor.OSUtil");
			MethodInfo method = type.GetMethod("GetDefaultApps");
			return (string[])method.Invoke(null, new object[]
			{
				path
			});
		}

		internal static string GetAppFriendlyName(string path)
		{
			Assembly assembly = Assembly.GetAssembly(typeof(EditorWindow));
			Type type = assembly.GetType("UnityEditor.OSUtil");
			MethodInfo method = type.GetMethod("GetAppFriendlyName");
			return (string)method.Invoke(null, new object[]
			{
				path
			});
		}

		internal static string GetDefaultAppPath(string path)
		{
			Assembly assembly = Assembly.GetAssembly(typeof(EditorWindow));
			Type type = assembly.GetType("UnityEditor.OSUtil");
			MethodInfo method = type.GetMethod("GetDefaultAppPath");
			return (string)method.Invoke(null, new object[]
			{
				path
			});
		}

		internal static string u00A0()
		{
			Assembly assembly = Assembly.GetAssembly(typeof(EditorWindow));
			Type type = assembly.GetType("UnityEditor.OSUtil");
			MethodInfo method = type.GetMethod("GetDefaultCachePath");
			return (string)method.Invoke(null, null);
		}
	}
}

